package com.ruoyi.electronicFence.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 控制器信息对象 t_ef_controller
 *
 * @author sxygsj
 * @date 2024-06-11
 */
public class TEfController extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 单位编号 */
    @Excel(name = "单位编号")
    private String unitCode;

    /** 控制器编码 */
    @Excel(name = "控制器编码")
    private String controllerCode;

    /** 控制器名称 */
    @Excel(name = "控制器名称")
    private String controllerName;

    /** 控制器状态 */
    @Excel(name = "控制器状态")
    private String controllerStatus;

    /** 控制器IP */
    @Excel(name = "≈IP")
    private String controllerIp;

    /** 数据插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "数据插入时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;



    /** 关联的设备信息列表 */
    @Excel(name = "关联的设备信息列表")
    List<TDeviceStatus> TDevices;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public String getControllerCode() {
        return controllerCode;
    }

    public void setControllerCode(String controllerCode) {
        this.controllerCode = controllerCode;
    }

    public String getControllerName() {
        return controllerName;
    }

    public void setControllerName(String controllerName) {
        this.controllerName = controllerName;
    }

    public String getControllerStatus() {
        return controllerStatus;
    }

    public void setControllerStatus(String controllerStatus) {
        this.controllerStatus = controllerStatus;
    }

    public String getControllerIp() {
        return controllerIp;
    }

    public void setControllerIp(String controllerIp) {
        this.controllerIp = controllerIp;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public List<TDeviceStatus> getTDevices() {
        return TDevices;
    }

    public void setTDevices(List<TDeviceStatus> TDevices) {
        this.TDevices = TDevices;
    }

    @Override
    public String toString() {
        return "TEfController{" +
                "id=" + id +
                ", unitCode='" + unitCode + '\'' +
                ", controllerCode='" + controllerCode + '\'' +
                ", controllerName='" + controllerName + '\'' +
                ", controllerStatus='" + controllerStatus + '\'' +
                ", controllerIp='" + controllerIp + '\'' +
                ", insertTime=" + insertTime +
                ", TDevices=" + TDevices +
                '}';
    }
}
